package com.honghu.cloud.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.AddressDto;

/**
 * 用户feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-member-service" ,path="/address")
public interface AddressFeignClient {

	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public AddressDto selectByPrimaryKey(@RequestParam("id") Long id);
	
	
	
	@RequestMapping(value = "/apiForFeign/saveEntity", method = RequestMethod.POST)
	public void saveEntity(@RequestParam("obj")AddressDto obj);
	
	
	@RequestMapping(value = "/apiForFeign/deleteById", method = RequestMethod.POST)
	public void deleteById(@RequestParam("id")Long id);
}


